package com.example.dellpc.myapplication;

import android.app.Activity;
import android.os.Bundle;
import android.text.util.Linkify;
import android.widget.TextView;

import com.example.view.WaterWaveView;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;

/**
 * Created by 刘智强 on 2016/9/19.
 *
 * 水波浪
 */
public class WaterWaveViewActivity  extends Activity{
    @ViewInject(R.id.mView_water)
    private WaterWaveView waterWaveView;
@ViewInject(R.id.tv_url)
    private TextView tv_url;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_waterwaveview);
        ViewUtils.inject(this);
        init();

    }

    public  void init(){
        waterWaveView.setmWaterLevel(0.7f);
        waterWaveView.startWave();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        waterWaveView.stopWave();
        waterWaveView=null;
    }
}
